﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BL
{
    public class ChiTietDonDatHangBL
    {
        ChiTietDonDatHangQuery ChiTietDDH = new ChiTietDonDatHangQuery();
        public List<ChiTietDonDatHangDAL> LayDSChiTietDonDatHang(int maDDH)
        {
            return ChiTietDDH.LayDSChiTietDonDatHang(maDDH);
        }
        public bool ThemChiTietDonDatHang(ChiTietDonDatHangDAL ctDDH)
        {
            return ChiTietDDH.ThemChiTietDonDatHang(ctDDH); ;
        }
        public bool CapNhatChiTietDonDatHang(ChiTietDonDatHangDAL ctDDH,string maSP)
        {
            return ChiTietDDH.CapNhatChiTietDDH(ctDDH,maSP);
        }
        public static bool XoaChiTietDonDatHang(string maDDH, string maSP)
        {
            return ChiTietDonDatHangQuery.XoaChiTietDonDatHang(maDDH, maSP);
        }
        public static bool XoaChiTietDonDatHangTheoDDH(string maDDH)
        {
            return ChiTietDonDatHangQuery.XoaChiTietDonDatHangTheoDDH(maDDH);
        }
    }
}